package com.ttdevs.spring.controller;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by ttdevs on 15/7/23.
 */
public class MultiWelcomeController extends MultiActionController{

    public ModelAndView add(HttpServletRequest request, HttpServletResponse response){
        System.out.println("========== /multi?action=add ===========");

        return new ModelAndView("multi_welcome", "result", "add");
    }

    public ModelAndView query(HttpServletRequest request, HttpServletResponse response){
        System.out.println("========== /multi?action=query ===========");

        return new ModelAndView("multi_welcome", "result", "query");
    }
}
